home *** CD-ROM | disk | FTP | other *** search
- ┌────────────────────────────────────────────────────────────────────────┐
- │Mod : STIMP10.MOD │
- │Version: WWIV 4.20 │
- │Author : Stimpy #1 @1002 NuclearArmsNET 442-1601 │
- │Description: Real simple header for voting questions (good for │
- │ modders.) │
- │Diffculty: ▓░░░░░░░░░ │
- │Disclaimer: Always backup your source. If you get an incredible urge to │
- │ sautee your cat, it's not my fault! │
- └────────────────────────────────────────────────────────────────────────┘
-
- = existing line
- + add line
- - deleted line
- * change line
-
- In MISCCMD.C
-
- int print_question(int f, int i, int ii)
- ={
- = char s[81],s1[81],s2[81];
- = int i1,i2,i3,t,t1,abort;
- = votingrec v;
- = voting_response vr;
-
- = lseek(f,((long) ii)*sizeof(votingrec),SEEK_SET);
- = read(f,(void *)&v,sizeof(votingrec));
- = abort=0;
- = outchr(12);
- * sprintf(s,"3│ 7Voting question 1#%-2d 3│",i);
- + pl("3╒═══════════════════════════════════════════════════════════════════════════╕");
- = pla(s,&abort);
- * npr("3│ 1%-73s 3│\r\n",v.question); /*was "pla(v.question,&abort);*/
- + pl("3╘═══════════════════════════════════════════════════════════════════════════╛");
- = nl();
- = t=0;
- = for (i1=0; i1<v.numanswers; i1++) {
- = vr=v.responses[i1];
- = t+=vr.numresponses;
- = }
-
- Now save and re-compile.